package com.shaoxi.risk.domain.service;

import com.shaoxi.risk.domain.context.PriceRiskContext;
import com.shaoxi.risk.domain.model.RiskDisposalResult;
import com.shaoxi.risk.domain.model.RiskEvent;
import com.shaoxi.risk.domain.model.RiskInfo;

/**
 * 风控领域服务
 */
public interface RiskControlService {
    /**
     * 风险判定
     *
     * @param priceRiskContext
     * @return
     */
    RiskInfo judeRisk(PriceRiskContext priceRiskContext);

    /**
     * 风险处置
     * @param riskEvent
     * @param riskInfo
     * @return
     */
    RiskDisposalResult disposalRisk(RiskEvent riskEvent, RiskInfo riskInfo);
}
